package com.woniuxy.yogaapp.service.imp;

import com.woniuxy.yogaapp.mapper.ChatMapper;
import com.woniuxy.yogaapp.pojo.Chat;
import com.woniuxy.yogaapp.service.WebSocketService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * 处理websocket业务逻辑
 */
@Service("/webSocketService")
public class WebSocketServiceImp implements WebSocketService {

    @Resource
    private ChatMapper chatMapper;
    /**
     * 数据库中添加通知信息
     * @param chat
     */
    @Override
    public void addChat(Chat chat) {
        chatMapper.addChat(chat);
    }
}
